package practice;
import java.io.IOException;
/**
 * @Author:DarknessShadow
 * @description:调用者，java.util.Properties是被适配者
 * @date 2020/5/9 14:03
 */
public class Main {

    public static void main(String[] args) throws IOException {
        FileIO io = new FileProperties();
        io.readFromFile("src/file.txt");
        io.setValue("year", "2004");
        io.setValue("month", "4");
        io.setValue("day", "21");
        io.writeToFile("src/newfile.txt");
    }
}
